<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="Keywords" content="嘉兴东臣信息科技有限公司"/>
		<meta name="Description" content="嘉兴东臣信息科技公司根据全球服务外包产业的发展趋势和中国服务外包产业发展的新特点，借助于世界500强企业Oracle在全球IT教育的领导地位，通过Oracle创新IT人才培训体系和整体解决方案"/>
		
		<link rel="stylesheet" type="text/css" href="{$_SOURCEDIR}/css/amazeui.min.css"/>
		<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/bootstrap.js" type="text/javascript" charset="utf-8"></script>	

		<title>案件列表</title>
	</head>
	<body style="padding: 15px;">
		<h1>案件列表</h1>
		<form class="am-form am-form-inline " style="padding: 10px 0" method="post" action="index.php?action=cases&func=search">
			<div class=" am-form-group am-form-select">
				<select style="width: 100px;" id="doc-select-1" name="option">
					<option value="Name">案件号</option>
					<option value="dealer">承办人</option>
					<option value="status">状态</option>
				</select>
				<span class=" am-form-caret"></span>
			</div>


			<div class="am-form-group">
				<input type="text" name="content" class="" id="doc-ipt-email-1" placeholder="请输入查询你的内容">
			</div>

			<button type="submit" class="am-btn am-btn-default">查询</button>
			<a href="index.php?action=cases&func=add">
				<button type="button" class="am-btn am-btn-success">添加案件</button>
			</a>
		</form>

		<table class="am-table am-table-striped am-table-hover">
			<tr>
				<th>编号</th>
				<th>案件号</th>
				<th>承办人</th>
				<th>接收日期</th>
				<th>完成日期</th>
				<th>计划完成日期</th>
				<th>状态</th>
			</tr>
			{foreach $res as $case}
				<tr class="{if date('Y-m-d H:i:s',time())>$case.except_date}
				am-danger
				{else}
				am-active
				{/if}">
					<td>{$case.c_id}</td>
					<td>{$case.Name}</td>
					<td>{$case.dealer}</td>
					<td>{$case.receive_date}</td>
					<td>{$case.finish_date}</td>
					<td>{$case.except_date}</td>
					<td>{$case.status}</td>
				</tr>

			{/foreach}
		</table>
		
	</body>
</html>
